.class public Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;
.super Ljava/lang/Object;
.source "IMAIConfigParams.java"


# instance fields
.field a:I

.field b:I

.field c:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 34
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 15
    const/4 v0, 0x3

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->a:I

    .line 16
    const/16 v0, 0xa

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->b:I

    .line 17
    const/16 v0, 0x78

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->c:I

    .line 35
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {p0, v0}, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->setFromJSON(Lorg/json/JSONObject;)V

    .line 36
    return-void
.end method


# virtual methods
.method public getMaxRetry()I
    .locals 1

    .prologue
    .line 25
    iget v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->a:I

    return v0
.end method

.method public getPingTimeOut()I
    .locals 1

    .prologue
    .line 22
    iget v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->c:I

    mul-int/lit16 v0, v0, 0x3e8

    return v0
.end method

.method public getRetryInterval()I
    .locals 1

    .prologue
    .line 31
    iget v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->b:I

    mul-int/lit16 v0, v0, 0x3e8

    return v0
.end method

.method public setFromJSON(Lorg/json/JSONObject;)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x1

    const v3, 0x7fffffff

    .line 39
    if-nez p1, :cond_0

    .line 46
    :goto_0
    return-void

    .line 41
    :cond_0
    const-string v0, "mr"

    iget v1, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->a:I

    const/4 v2, 0x0

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->a:I

    .line 43
    const-string v0, "pint"

    iget v1, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->b:I

    invoke-static {p1, v0, v1, v4, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->b:I

    .line 45
    const-string v0, "pto"

    iget v1, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->c:I

    invoke-static {p1, v0, v1, v4, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->c:I

    goto :goto_0
.end method

.method public toJSON()Lorg/json/JSONObject;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    .line 49
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 50
    const-string v1, "mr"

    iget v2, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->a:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 51
    const-string v1, "mr"

    iget v2, p0, Lcom/inmobi/androidsdk/bootstrapper/IMAIConfigParams;->b:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 52
    return-object v0
.end method
